.pakku-panel {
    background-color: rgba(247, 247, 247, .8);
    backdrop-filter: blur(3px);
    color: black;
    width: 300px;
    position: absolute;
    z-index: 1001; /* topbar is 1002 */
    top: 50px;
    right: 0;
    box-shadow: -1px 0 3px rgba(0, 0, 0, .5);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.pakku-panel p {
    margin: 0;
}
.pakku-floating .pakku-panel {
    filter: brightness(.85);
    pointer-events: none;
}
.pakku-panel .pakku-panel-title {
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    margin: 6px 0 3px 0;
    white-space: nowrap;
}
.pakku-panel .pakku-panel-close {
    font: inherit !important; /* fix for bangumi page */
    font-weight: bold !important;
    /*line-height: 1em !important;*/
    color: black !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 3px 6px 3px 9px !important;
    cursor: pointer !important;
}
.pakku-panel .pakku-panel-selectbar {
    text-align: center;
    margin: 3px 0;
}
.pakku-panel .pakku-panel-selectbar-left, .pakku-panel .pakku-panel-selectbar-right {
    padding: 0 25px;
    cursor: pointer;
}
.pakku-panel .pakku-panel-selectbar-left {
    float: left;
}
.pakku-panel .pakku-panel-selectbar-left::after {
    content: '<<';
}
.pakku-panel .pakku-panel-selectbar-right {
    float: right;
}
.pakku-panel .pakku-panel-selectbar-right::after {
    content: '>>';
}
.pakku-panel .pakku-panel-desc:not(:empty) {
    line-height: 1.2em;
    margin: 3px 0 3px 6px;
    white-space: initial;
}
.pakku-panel .pakku-insight-row:not(:empty) {
    margin: 3px 0 3px 6px;
    font-weight: bold;
}
.pakku-panel .pakku-insight-row:not(:empty)::before {
    content: '跳转 ';
}
.pakku-panel .pakku-panel-peers {
    max-height: 350px;
    overflow-y: auto;
}
.pakku-panel .pakku-panel-footer {
    overflow: hidden;
    margin: 3px 0 6px 6px;
}
.pakku-panel * {
    user-select: text !important; /* to override ".bilibili-player *" */
    font-family: Consolas, Courier, '微软雅黑', 'Microsoft Yahei', '宋体', monospace !important;
}
.pakku-panel a {
    color: black;
    border-bottom: 1px solid black;
}
.pakku-panel hr {
    margin: 0;
}
.pakku-panel button {
    background: unset;
    border: unset;
    cursor: unset;
    padding: unset;
    outline: unset;
    color: unset;
    text-align: unset;
    font: unset;
    line-height: unset;
    width: unset;
}
.pakku-panel .text-fix {
    overflow-x: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.pakku-panel .pakku-panel-footer a {
    display: inline-block;
    color: initial !important;
}
.pakku-panel .pakku-panel-desc:empty~hr.pakku-for-desc {
    display: none;
}
.pakku-panel .pakku-panel-footer:empty~hr.pakku-for-footer {
    display: none;
}
.pakku-panel .pakku-panel-peers>div:first-child {
    padding-top: .4em;
}
.pakku-panel .pakku-panel-peers>div:last-child {
    padding-bottom: .4em;
}
.pakku-panel .pakku-panel-peers>div {
    overflow: hidden;
}
.pakku-panel .pakku-panel-peers p:nth-child(1) {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pakku-panel .pakku-panel-peers p:nth-child(2) {
    display: none;
    font-weight: normal;
}
.pakku-panel .pakku-panel-peers div:hover p:nth-child(1) {
    white-space: initial;
    word-wrap: break-word;
    word-break: break-all;
}
.pakku-panel .pakku-panel-peers div:hover p:nth-child(2) {
    display: initial;
}
.pakku-panel .pakku-panel-peers div.black {
    background-color: rgba(42, 42, 42, .8);
}
.pakku-panel .pakku-panel-peers div.white {
    background-color: rgba(247, 247, 247, .8);
}
.pakku-panel .pakku-panel-peers div.black:hover {
    background-color: black;
}
.pakku-panel .pakku-panel-peers div.white:hover {
    background-color: white;
}
.pakku-panel .pakku-panel-peers div {
    padding: .2em 0;
}
.pakku-panel .pakku-panel-peers div:hover {
    padding: .4em 0;
}

.pakku-insight-row button {
    border-radius: 1em;
    background-color: black;
    color: yellow;
    padding: .25em .5em;
    margin: 0 .5em 0 0;
    cursor: pointer;
}

/* event fix */

.__pakku_pointer_event div.bilibili-player-video-danmaku {
    pointer-events: initial !important;
}
.__pakku_pointer_event div.bilibili-danmaku,
.__pakku_pointer_event div.b-danmaku,
.__pakku_pointer_event div.bili-dm.bili-show,
.__pakku_pointer_event div.bili-danmaku-x-show {
    pointer-events: initial !important;
    background-color: rgba(255,255,0,.6);
}
.__pakku_pointer_event div.bilibili-danmaku:hover,
.__pakku_pointer_event div.b-danmaku:hover,
.__pakku_pointer_event div.bili-dm.bili-show:hover,
.__pakku_pointer_event div.bili-danmaku-x-show:hover {
    background-color: rgba(255,255,0,1);
}
.__pakku_pointer_event div.b-danmaku-hide {
    display: none !important;
}
.__pakku_pointer_event .bilibili-player-video-top,
.__pakku_pointer_event .bilibili-player-video-control-mask,
.__pakku_pointer_event .bilibili-player-video-control-wrap,
.__pakku_pointer_event .bilibili-player-video-control,
.__pakku_pointer_event .bilibili-player-video-state,
.__pakku_pointer_event .bilibili-player-dm-tip-wrap,
.__pakku_pointer_event .bpx-player-top-wrap,
.__pakku_pointer_event .bpx-player-dm-tip,
.__pakku_pointer_event .bpx-player-state-wrap,
.__pakku_pointer_event .bpx-player-control-wrap {
    display: none !important;
}